package org.marketing.common.event;

import org.marketing.common.dto.EventDataDTO;

public class EventShoppingPointsDTO  extends EventDataDTO{
    public EventShoppingPointsDTO(String userId, String shoppingNo, Long changeNum, boolean isPay, String failReason) {
		super();
		this.userId = userId;
		this.shoppingNo = shoppingNo;
		this.changeNum = changeNum;
		this.isPay = isPay;
		this.failReason = failReason;
	}
    
    public EventShoppingPointsDTO() {
		super();
	}

	/**
     * 被扣的用户id
     */
    private String userId;
    
    @Override
	public String toString() {
		return "EventShoppingPointsSuccessDTO [userId=" + userId + ", shoppingNo=" + shoppingNo + ", changeNum="
				+ changeNum + ", isPay=" + isPay + ", failReason=" + failReason + "]";
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getShoppingNo() {
		return shoppingNo;
	}

	public void setShoppingNo(String shoppingNo) {
		this.shoppingNo = shoppingNo;
	}

	public Long getChangeNum() {
		return changeNum;
	}

	public void setChangeNum(Long changeNum) {
		this.changeNum = changeNum;
	}

	/**
     * 商城的订单号
     */
    private String shoppingNo;
    
    /**
     * 扣的具体积分数
     */
    private Long changeNum;
	
    
    /**
     * 是否扣减成功 
     */
    private boolean isPay;
    
    public boolean isPay() {
		return isPay;
	}

	public void setPay(boolean isPay) {
		this.isPay = isPay;
	}

	public String getFailReason() {
		return failReason;
	}

	public void setFailReason(String failReason) {
		this.failReason = failReason;
	}

	private String failReason;
	
    
}
